<?php

namespace common\models;

use Yii;

/**
 * This is the model class for table "application_result".
 *
 * @property integer $id
 * @property string $application_id
 * @property integer $result
 * @property string $note
 * @property string $reviewed_at
 * @property integer $user_id
 */
class ApplicationResult extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'application_result';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['application_id'], 'required'],
            [['application_id', 'result', 'user_id'], 'integer'],
            [['note'], 'string'],
            [['reviewed_at'], 'safe'],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'application_id' => 'Application ID',
            'result' => 'Result',
            'note' => 'Note',
            'reviewed_at' => 'Reviewed At',
            'user_id' => '审批人',
        ];
    }
}
